﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmSaleOrder.aspx.cs" MasterPageFile="~/Site.master" Inherits="SitePages_frmSaleOrder" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

<h2>
Orden de Compra
</h2>
    
<asp:Panel ID="Panel1" runat="server" Height="746px">
    <table style="width:100%;">
        <tr>
            <td style="top: 10px" width="250" align="right">
                <asp:Label ID="Label8" runat="server" Font-Bold="True" Font-Size="Small" 
                    Text="Codigo de Cliente:"></asp:Label>
                <br />
            </td>
            <td height="20" class="style3">
                &nbsp;<asp:Label ID="CodeLabel" runat="server" Font-Size="Small"></asp:Label>
                <br />
            </td>
            <td>
                <asp:Label ID="Label14" runat="server" Font-Bold="True" Font-Size="Small" 
                    Text="Nombre del Cliente:"></asp:Label>
                <br />
            </td>
            <td>
                <asp:Label ID="NameLabel" runat="server" Font-Size="Small"></asp:Label>
                <br />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label10" runat="server" Font-Bold="True" Font-Size="Small" 
                    Text="Cuenta Auxiliar:"></asp:Label>
                <br />
            </td>
            <td>
                <asp:DropDownList ID="ClientComboBox" runat="server" Height="24px" 
                    Width="200px" onselectedindexchanged="ClientComboBox_SelectedIndexChanged">
                </asp:DropDownList>
                <br />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label15" runat="server" Font-Bold="True" Font-Size="Small" 
                    Text="Moneda:"></asp:Label>
                <br />
            </td>
            <td>
                <asp:DropDownList ID="CurrencyComboBox" runat="server" Height="24px" 
                    Width="200px">
                </asp:DropDownList>
                <br />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Size="Small" 
                    Text="Fecha de Contabilización:"></asp:Label>
            </td>
            <td class="style4">
                <asp:Panel ID="Panel4" runat="server">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Calendar ID="postingDate" runat="server"></asp:Calendar>
                </asp:Panel>
            </td>
            <td align="center">
                <asp:Label ID="Label20" runat="server" Font-Bold="True" Font-Size="Small" 
                    Text="Fecha de Entrega:"></asp:Label>
            </td>
            <td>
                <asp:Panel ID="Panel2" runat="server">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Calendar ID="deliveryDate" runat="server"></asp:Calendar>
                </asp:Panel>
            </td>
        </tr>

    </table>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
    <table style="width:100%;" align="center">
        <tr align="center">
            <td>
                &nbsp;</td>
            <td>
                <table style="width: 60%; height: 152px;">
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label17" runat="server" Font-Bold="True" Text="Bodega:" 
                                Font-Size="Small"></asp:Label>
                            <br />
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="StoreComboBox" runat="server" Width="200px" Height="25px">
                            </asp:DropDownList>
                            <br />
                        </td>
                        <td align="right">
                            <asp:Label ID="Label18" runat="server" Font-Bold="True" Text="Descripción:" 
                                Font-Size="Small"></asp:Label>
                            <br />
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ItemComboBox" runat="server" Height="24px" 
                                style="margin-left: 0px" Width="200px">
                            </asp:DropDownList>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label19" runat="server" Font-Bold="True" Text="Cantidad:" 
                                Font-Size="Small"></asp:Label>
                            <br />
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtCant" runat="server" Width="200px"></asp:TextBox>
                            <asp:Label ID="lblCant" runat="server" Font-Bold="True" ForeColor="#FF3300" 
                                Font-Size="Small"></asp:Label>
                            <br />
                        </td>
                        <td align="right">
                            <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="Tipo de Impuesto:" 
                                Font-Size="Small" Width="130px"></asp:Label>
                            <br />
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="TaxComboBox" runat="server" Height="24px" 
                                Width="200px">
                            </asp:DropDownList>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Precio unitario:" 
                                Font-Size="Small" Width="100px"></asp:Label>
                            <br />
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtUnitPrice" runat="server" Width="200px"></asp:TextBox>
                            <asp:Label ID="lblPrice" runat="server" Font-Bold="True" ForeColor="#FF3300" 
                                Font-Size="Small"></asp:Label>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                        </td>
                        <td align="center">
                            <asp:Button ID="btnAgregarItem" runat="server"
                                Text="Agregar Artículo" Width="180px" onclick="btnAgregarItem_Click" />
                            <br />
                        </td>
                        <td align="center">
                            <asp:Button ID="btnAgregarDoc" runat="server" Text="Enviar Documento" 
                                Width="181px" onclick="btnAgregarDoc_Click" />
                        </td>
                        <td align="center">
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td  align="center">
                            &nbsp;</td>
                        <td  align="left">
                            <asp:Label ID="Label21" runat="server" Text="Monto de impuestos:"></asp:Label>
                            &nbsp;
                            <asp:Label ID="taxLbl" runat="server"></asp:Label>
                        </td>
                        <td align="center">
                            <asp:Label ID="Label22" runat="server" Text="Monto antes de impuestos:" 
                                Width="173px"></asp:Label>
                            <asp:Label ID="beforTaxLbl" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td  align="center">
                            &nbsp;</td>
                        <td align="left">
                            <asp:Label ID="Label23" runat="server" Text="Total de factura:" 
                                Width="99px"></asp:Label>
                            &nbsp;
                            <asp:Label ID="totalLbl" runat="server"></asp:Label>
                            <br />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<asp:Table 
        ID="InvoiceTable" runat="server" align="center" border="1" cellspacing="3">
        <asp:TableRow runat="server" BorderWidth="2px" Font-Bold="True">
            <asp:TableCell runat="server" HorizontalAlign="Center" Width="100px">Artículo</asp:TableCell>
            <asp:TableCell runat="server" HorizontalAlign="Center" Width="200px">Descripción</asp:TableCell>
            <asp:TableCell runat="server" HorizontalAlign="Center" Width="120px">Cantidad</asp:TableCell>
            <asp:TableCell runat="server" HorizontalAlign="Center" Width="120px">Precio unitario</asp:TableCell>
            <asp:TableCell runat="server" HorizontalAlign="Center" Width="120px">Monto de impuesto</asp:TableCell>
            <asp:TableCell runat="server" HorizontalAlign="Center" Width="120px">Monto total</asp:TableCell>
            <asp:TableCell runat="server" HorizontalAlign="Center" Width="200px">Almacén</asp:TableCell>
            <asp:TableCell runat="server" HorizontalAlign="Center" Width="100px">Eliminar</asp:TableCell>
        </asp:TableRow>
    </asp:Table>
&nbsp;<table style="width:100%;">
        <tr>
            <td>
                <asp:Label ID="lblItem" runat="server" Font-Size="Small" ForeColor="#FF3300"></asp:Label>
            </td>
        </tr>
    </table>
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br /> 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <br />
    <br />
    <br />
    <br />
</asp:Panel>
    
</asp:Content>
